package com.ruoyi.web.nywjzsj.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电箱数据计量对象 electric_box_energy
 *
 * @author ruoyi
 * @date 2025-09-19
 */
public class ElectricBoxEnergy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** mac 地址 */
    @Excel(name = "mac 地址")
    private String mac;

    /** 电压 */
    @Excel(name = "电压")
    private BigDecimal voltage;

    /** 电流 */
    @Excel(name = "电流")
    private BigDecimal electricCurrent;

    /** 漏电流 */
    @Excel(name = "漏电流")
    private BigDecimal leakElectricity;

    /** 电能 */
    @Excel(name = "电能")
    private BigDecimal electricEnergy;

    /** 功率 */
    @Excel(name = "功率")
    private BigDecimal power;

    /** 温度 */
    @Excel(name = "温度")
    private BigDecimal temperature;

    /** 湿度 */
    @Excel(name = "湿度")
    private BigDecimal humidity;

    /** 温度上限 */
    @Excel(name = "温度上限")
    private BigDecimal temperatureUpperLimit;

    /** 温度下限 */
    @Excel(name = "温度下限")
    private BigDecimal temperatureLowerLimit;

    /** 湿度阈值 */
    @Excel(name = "湿度阈值")
    private BigDecimal humidityThreshold;

    /** 风扇转速 */
    @Excel(name = "风扇转速")
    private BigDecimal windSpeed;

    /** 累计次数 */
    @Excel(name = "累计次数")
    private BigDecimal lightningStrikesSum;

    /** 漏电流阈值 */
    @Excel(name = "漏电流阈值")
    private BigDecimal leakElectricityLimit;

    /** 电流单位 */
    @Excel(name = "电流单位")
    private BigDecimal currentUnit;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setMac(String mac)
    {
        this.mac = mac;
    }

    public String getMac()
    {
        return mac;
    }

    public void setVoltage(BigDecimal voltage)
    {
        this.voltage = voltage;
    }

    public BigDecimal getVoltage()
    {
        return voltage;
    }

    public void setElectricCurrent(BigDecimal electricCurrent)
    {
        this.electricCurrent = electricCurrent;
    }

    public BigDecimal getElectricCurrent()
    {
        return electricCurrent;
    }

    public void setLeakElectricity(BigDecimal leakElectricity)
    {
        this.leakElectricity = leakElectricity;
    }

    public BigDecimal getLeakElectricity()
    {
        return leakElectricity;
    }

    public void setElectricEnergy(BigDecimal electricEnergy)
    {
        this.electricEnergy = electricEnergy;
    }

    public BigDecimal getElectricEnergy()
    {
        return electricEnergy;
    }

    public void setPower(BigDecimal power)
    {
        this.power = power;
    }

    public BigDecimal getPower()
    {
        return power;
    }

    public void setTemperature(BigDecimal temperature)
    {
        this.temperature = temperature;
    }

    public BigDecimal getTemperature()
    {
        return temperature;
    }

    public void setHumidity(BigDecimal humidity)
    {
        this.humidity = humidity;
    }

    public BigDecimal getHumidity()
    {
        return humidity;
    }

    public void setTemperatureUpperLimit(BigDecimal temperatureUpperLimit)
    {
        this.temperatureUpperLimit = temperatureUpperLimit;
    }

    public BigDecimal getTemperatureUpperLimit()
    {
        return temperatureUpperLimit;
    }

    public void setTemperatureLowerLimit(BigDecimal temperatureLowerLimit)
    {
        this.temperatureLowerLimit = temperatureLowerLimit;
    }

    public BigDecimal getTemperatureLowerLimit()
    {
        return temperatureLowerLimit;
    }

    public void setHumidityThreshold(BigDecimal humidityThreshold)
    {
        this.humidityThreshold = humidityThreshold;
    }

    public BigDecimal getHumidityThreshold()
    {
        return humidityThreshold;
    }

    public void setWindSpeed(BigDecimal windSpeed)
    {
        this.windSpeed = windSpeed;
    }

    public BigDecimal getWindSpeed()
    {
        return windSpeed;
    }

    public void setLightningStrikesSum(BigDecimal lightningStrikesSum)
    {
        this.lightningStrikesSum = lightningStrikesSum;
    }

    public BigDecimal getLightningStrikesSum()
    {
        return lightningStrikesSum;
    }

    public void setLeakElectricityLimit(BigDecimal leakElectricityLimit)
    {
        this.leakElectricityLimit = leakElectricityLimit;
    }

    public BigDecimal getLeakElectricityLimit()
    {
        return leakElectricityLimit;
    }

    public void setCurrentUnit(BigDecimal currentUnit)
    {
        this.currentUnit = currentUnit;
    }

    public BigDecimal getCurrentUnit()
    {
        return currentUnit;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("mac", getMac())
            .append("voltage", getVoltage())
            .append("electricCurrent", getElectricCurrent())
            .append("leakElectricity", getLeakElectricity())
            .append("electricEnergy", getElectricEnergy())
            .append("power", getPower())
            .append("temperature", getTemperature())
            .append("humidity", getHumidity())
            .append("temperatureUpperLimit", getTemperatureUpperLimit())
            .append("temperatureLowerLimit", getTemperatureLowerLimit())
            .append("humidityThreshold", getHumidityThreshold())
            .append("windSpeed", getWindSpeed())
            .append("lightningStrikesSum", getLightningStrikesSum())
            .append("leakElectricityLimit", getLeakElectricityLimit())
            .append("currentUnit", getCurrentUnit())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
